﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once

#include <vector>
#include "OwnerPtr.h"
#include "GcmpGeometryInterface.h"
#include "IStaticContoursSegmentInfo.h"

namespace gcmp
{
    class IBody;
    class ICurve3d;

    class IContourGenerate
    {
    public:
        virtual ~IContourGenerate() {}

        /// \brief 静态轮廓线生成
        /// \param pBody[in]          体
        /// \param pSegmentInfo[in]   静态轮廓线曲面分割份数信息
        /// \param contours[out]      计算体对应的静态轮廓线
        virtual bool CreateStaticContours(
            const IBody* pBody,
            const IStaticContoursSegmentInfo* pSegmentInfo,
            std::vector<OwnerPtr<ICurve3d>>& contours)const = 0;
    };
}
